using System;
using System.Text;

namespace PropertyExpression.PresentationCode.CodeGenerator
{
    internal class PrefixMethodBuilderBySpecifiedType : IPrefixMethodBuilder
    {
        private readonly Type specifiedType;

        public PrefixMethodBuilderBySpecifiedType(Type specifiedType)
        {
            this.specifiedType = specifiedType;
        }

        public void Build(StringBuilder stringBuilder, Type parameterType, IOverloadedAndPrefixMethodsBuilder overloadedAndPrefixMethodsBuilder)
        {
            InternalUtil.BuildPrefixMethod(specifiedType, stringBuilder, parameterType, overloadedAndPrefixMethodsBuilder);
        }
    }
}